package com.graduation.table.major.entity;

import java.util.Date;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.graduation.base.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * @Description: 专业表
 * @Author: jeecg-boot
 * @Date:   2022-04-08
 * @Version: V1.0
 */
@Data
@TableName("major")
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="major对象", description="专业表")
public class Major extends BaseEntity {
    
	/**id*/
	@TableId(type = IdType.ASSIGN_ID)
    @ApiModelProperty(value = "id")
	private String id;
	/**专业名称*/
    @ApiModelProperty(value = "专业名称")
	private String name;
	/**专业编码*/
    @ApiModelProperty(value = "专业编码")
	private String code;
	/**学院id*/
    @ApiModelProperty(value = "学院id")
	private String collegeId;
	/**等级*/
    @ApiModelProperty(value = "等级")
	private Integer level;
	/**成立时间*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "成立时间")
	private Date establishTime;
	/**描述*/
    @ApiModelProperty(value = "描述")
	private String description;
}
